<?php
namespace Home\Controller;

use Home\Controller\BaseController;

class LoginController extends BaseController
{
   public function index(){
       $now_term=M('term_time')->field('xueyear,term')->order('id desc')->limit(1)->find();
       session_start();
       session('id', '1');
       session('xueyear', $now_term['xueyear']);
       session('term', $now_term['term']);
   }
}